﻿﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/stylesheets/style.css">
    <title>Document</title>
</head>

<body>
    <div class="layui-layout layui-layout-admin">
        <!-- 头部导航区域-->
        <div class="layui-header">
            <form>
                <ul class="layui-nav">
                    <li class="layui-nav-item">
                        <img :src="logo">
                        <span id="logo">武汉科技大学</span>
                    </li>
                    <li class="layui-nav-item" style="margin-left: 10%;">
                        <a>首页</a>
                    </li>
                    <li class="layui-nav-item" style="float: right;">
                        <a>退出登录</a>
                    </li>
                    <li class="layui-nav-item" style="float: right;">
                        <a>消息</a>
                    </li>
                </ul>
            </form>
        </div>
        <!-- 左侧导航 -->
        <div id="left" class="layui-side layui-bg-black">
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item">
                    <a class="layui-nav-itemed" id="bas">基本信息</a>
                </li>
                <li class="layui-nav-item">
                    <a class="layui-nav-itemed" id="edu">教育经历</a>
                </li>
                <li class="layui-nav-item">
                    <a class="layui-nav-itemed" id="pra">工作经历</a>
                </li>
                <li class="layui-nav-item">
                    <a class="layui-nav-itemed" id="hon">获奖情况</a>
                </li>
                <li class="layui-nav-item">
                    <a class="layui-nav-itemed" id="pro">项目经历</a>
                </li>
                <li class="layui-nav-item">
                    <a class="layui-nav-itemed" id="eva">自我评价</a>
                </li>
                <li class="layui-nav-item">
                    <a class="layui-nav-itemed" id="myResume">创建简历</a>
                </li>
            </ul>
        </div>
        <!-- 主体内容 -->
        <div class="layui-body" id="content">
            <!--基本信息-->
            <div id='base' style="padding:10px;">
                <blockquote class="layui-elem-quote">基本信息</blockquote>
                <form class="layui-form" id="baseForm">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">姓名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="name" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">性别</label>
                            <div class="layui-input-inline">
                                <input type="radio" name="sex" value="0" title="男">
                                <input type="radio" name="sex" value="1" title="女">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">出生日期</label>
                            <div class="layui-input-inline">
                                <input type="text" name="birthday" class="layui-input" id="test1">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">电话号码</label>
                            <div class="layui-input-inline">
                                <input type="tel" name="phone" class="layui-input" />
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">电子邮箱</label>
                            <div class="layui-input-inline">
                                <input type="email" name="email" class="layui-input" />
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">专业</label>
                            <div class="layui-input-inline">
                                <input type="text" name="specialty" class="layui-input" />
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">籍贯</label>
                            <div class="layui-input-inline">
                                <input type="text" name="homeland" class="layui-input" />
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">政治面貌</label>
                            <div class="layui-input-inline">
                                <select name="politic" lay-verify="required">
                                    <option value="0">共青团员</option>
                                    <option value="1">中共预备党员</option>
                                    <option value="2">共产党员</option>
                                    <option value="3">群众</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">民族</label>
                        <div class="layui-input-inline">
                            <input type="text" name="nationality" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="button" class="layui-btn" value="保存" onclick="storeBasic()" />
                        </div>
                    </div>
                </form>
            </div>
            <!--教育经历-->
            <div id="education" style="padding:10px;">
                <blockquote class="layui-elem-quote">教育经历</blockquote>
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">毕业院校</label>
                            <div class="layui-input-inline">
                                <input type="text" name="edu_exp" placeholder="请输入毕业院校" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">学历</label>
                            <div class="layui-input-inline">
                                <select name="diploma" lay-verify="required">
                                    <option value="0">本科</option>
                                    <option value="1">硕士</option>
                                    <option value="2">博士</option>
                                </select>
                            </div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">在校时间</label>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input type="text" name="edu_start_time" id="edu_start_time" autocomplete="off"
                                    class="layui-input">
                            </div>
                            <div class="layui-form-mid">-</div>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input type="text" name="edu_end_time" id="edu_end_time" autocomplete="off"
                                    class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="button" class="layui-btn" value="添加" onclick="addEdu()" />
                        </div>
                    </div>
                </form>
                <div class="layui-collapse" lay-accordion="" id="education_all" style="width: 50%">

                </div>
            </div>
            <!-- 工作经历 -->
            <div id="practice" style="padding: 10px;">
                <blockquote class="layui-elem-quote">工作经历</blockquote>
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <label class="layui-form-label">公司</label>
                        <div class="layui-input-inline">
                            <input type="text" name="company" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">工作时间</label>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input type="text" name="pra_start_time" id="pra_start_time" autocomplete="off"
                                    class="layui-input">
                            </div>
                            <div class="layui-form-mid">-</div>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input type="text" name="pra_end_time" id="pra_end_time" autocomplete="off"
                                    class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">描述</label>
                        <div class="layui-input-inline" style="width: 400px">
                            <textarea placeholder="请输入内容" class="layui-textarea" name="practice_exp"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="button" class="layui-btn" value="添加" onclick="addPra()" />
                        </div>
                    </div>
                </form>
                <div class="layui-collapse" lay-accordion="" id="practice_all" style="width: 50%">

                </div>
            </div>
            <!-- 获奖情况 -->
            <div id="honor" style="padding: 10px">
                <blockquote class="layui-elem-quote">获奖情况</blockquote>
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <label class="layui-form-label">获奖情况</label>
                        <div class="layui-input-block">
                            <input type="text" name="honor_exp" class="layui-input" style="width: 50%">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="button" class="layui-btn" value="添加" onclick="addHon()" />
                        </div>
                    </div>
                </form>
                <div class="layui-collapse" lay-accordion="" id="honor_all" style="width: 50%">

                </div>
            </div>
            <!-- 项目经历 -->
            <div id="project" style="padding: 10px;">
                <blockquote class="layui-elem-quote">项目经历</blockquote>
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-inline">
                            <input type="text" name="title" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">工作时间</label>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input type="text" name="pro_start_time" id="pro_start_time" autocomplete="off"
                                    class="layui-input">
                            </div>
                            <div class="layui-form-mid">-</div>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input type="text" name="pro_end_time" id="pro_end_time" autocomplete="off"
                                    class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">描述</label>
                        <div class="layui-input-inline" style="width: 400px">
                            <textarea placeholder="请输入内容" class="layui-textarea" name="project_exp"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="button" class="layui-btn" value="添加" onclick="addPro()" />
                        </div>
                    </div>
                </form>
                <div class="layui-collapse" id="project_all" lay-accordion="" style="width: 50%">
                </div>
            </div>
            <!-- 自我评价 -->
            <div id="evaluation" style="padding: 10px;">
                <blockquote class="layui-elem-quote">其他</blockquote>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">自我评价</label>
                    <div class="layui-input-inline" style="width: 400px">
                        <textarea placeholder="请输入内容" class="layui-textarea" name="evaluate"></textarea>
                    </div>
                    <input type="button" value="保存" class="layui-btn" onclick="addEvaluate()" />
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">其他信息</label>
                    <div class="layui-input-inline" style="width: 400px">
                        <textarea placeholder="请输入内容" class="layui-textarea" name="others"></textarea>
                    </div>
                    <input type="button" value="保存" class="layui-btn" onclick="addOthers()" />
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">个人技能</label>
                    <div class="layui-input-inline" style="width: 400px">
                        <textarea placeholder="请输入内容" class="layui-textarea" name="skills"></textarea>
                    </div>
                    <input type="button" value="保存" class="layui-btn" onclick="addSkills()" />
                </div>
            </div>
            <!-- 创建简历 -->
            <div id="resume" style="padding: 10px;">
                <blockquote class="layui-elem-quote">创建简历</blockquote>
                <button type="button" class="layui-btn" style="margin:10px;" onclick="CreateResume()">
                    <i class="layui-icon">&#xe608;</i> 添加
                </button>
            </div>
            <div class="layui-footer layui-bg-gray">
                © Copyright 谢灿
                <span style="float:right;margin-right:20px">武汉科技大学毕业生简历管理系统</span>
            </div>
        </div>
    </div>
    <script src="/layui/layui.js"></script>
    <script src="/jquery.min.js"></script>
    <script src="/jquery.cookie.js"></script>
    <script src="/javascripts/getInformation.js"></script>
    <script src="/javascripts/addInformation.js"></script>
    <script src="/javascripts/deleteInformation.js"></script>
    <script>
        $(function () {
            getBasicInfo();
            getEducationInfor();
            getPracticeInfo();
            getProjectInfo();
            getHonerInfo();
            var base = $('#base').offset().top;
            var education = $('#education').offset().top;
            var practice = $('#practice').offset().top;
            var project = $('#project').offset().top;
            var evaluation = $('#evaluation').offset().top;
            var resume = $('#resume').offset().top;
            var honer = $("#honor").offset().top;
            $('#bas').click(function () {
                $('#content').animate({
                    scrollTop: base - base
                }, 300);
            })
            $('#edu').click(function () {
                $('#content').animate({
                    scrollTop: education - base
                }, 300);
            })
            $('#pra').click(function () {
                $('#content').animate({
                    scrollTop: practice - base
                }, 300);
            })
            $('#hon').click(function () {
                $('#content').animate({
                    scrollTop: honer - base
                }, 300);
            })
            $('#pro').click(function () {
                $('#content').animate({
                    scrollTop: project - base
                }, 300);
            })
            $('#eva').click(function () {
                $('#content').animate({
                    scrollTop: evaluation - base
                }, 300);
            })
            $("#myResume").click(function () {
                $('#content').animate({
                    scrollTop: resume - base
                }, 300);
            })
        })
        $("#content").scroll(function (event) {
            checkscroll()
        });
        function checkscroll() {

        }
    </script>
</body>

</html>